<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="http://www.baidu.com">
  用户名<input type="text" name="username" placeholder="请输入用户名" maxlength="8" value="tom"><br>
  密码<input type="password" name="password" placeholder="请输入用户名"><br>
  性别<input type="radio" name="gender" value="m" id="r1"><label for="r1">男</label>
  <input type="radio" name="gender" value="w" id="r2"><label for="r2">女</label><br>

  爱好<input type="checkbox" name="hobby" value="cy" id="r3"><label for="r3">抽烟</label>
  <input type="checkbox" name="hobby" value="hj" id="r4"><label for="r4">喝酒</label>
  <input type="checkbox" name="hobby" value="tt" id="r5"><label for="r5">烫头</label><br>

  生日<input type="date" name="birthday"><br>

  靓照<input type="file" name="pic"><br>

  城市<select name="city">
  <option value="bj">东京</option>
  <option value="bt" selected>坂田</option>
  <option value="gd">广岛</option>
  <option value="cq">长崎</option>
</select><br>
  <input type="submit" value="注册">
  <input type="reset" value="重置按钮">
  <input type="button" value="自定义按钮">
  <hr>
  <button type="submit">注册</button>
  <button type="reset">重置按钮</button>
  <button type="button">自定义按钮</button>
</form>
</body>
</html>